#define _CRT_SECURE_NO_WARNINGS 1;
#include "stdio.h"
#include "List.h"

void test1(void)
{
	LTNode* plist = LTInit();
	LTPushBack(plist, 0);
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTprint(plist);
	LTPushFront(plist,-1);
	LTPushFront(plist,-2);
	LTPushFront(plist,-3);
	LTprint(plist);
	LTPopBack(plist);
	LTPopBack(plist);
	LTprint(plist);
	LTPOpFront(plist);
	LTPOpFront(plist);
	LTprint(plist);
	LTNode* find = LTFind(plist, -1);
	LTInsert(find, 2);
	LTprint(plist);
	LTErase(find);
	LTprint(plist);
	LTDestroy(plist);
	plist = NULL;
}


int main()
{
	test1();
	return 0;
}